package practice02;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice02
 * @ClassName: Animal
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/11 18:53
 * @Copyright 大牛版板所有
 */
public abstract class Animal {
    private String name;
    private String color;
    private String type;

    public Animal() {
    }

    public Animal(String name, String color, String type) {
        this.name = name;
        this.color = color;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public abstract void cry();

    public abstract void eat();
}
